<!DOCTYPE html>
<html lang="zh">
    <head>
        <title>用户管理 | OMS</title>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT" />
        
        <!-- 加载 bootstrap 样式-->
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/font-awesome/css/font-awesome.min.css" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap/css/bootstrap.min.css" />
        
        <!-- 加载本页需要的三方插件样式 -->
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/jquery.dataTables.css">
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/dataTables.bootstrap.css">
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-tablesorter/themes/blue/style-custom.css">
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-bootstrap-wizard/custom.css">
	    <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-steps/css/jquery.steps.css">
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/animate.css/animate.css" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/iCheck/skins/all.css" />
    	<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">
<!--     	<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/user.css/jquery.ui.all.css"> -->
        <!-- 加载主题风格样式 -->
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" class="default-style" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" id="theme-change" class="style-change color-change" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/style-responsive.css" />
        <link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/dhtmlxtree/dhtmlxtree.css" />

		<link type="text/css" rel="stylesheet" href="/views/static/css/datatables.css" />
    </head>
    <body class="">
	    <!--BEGIN CONTENT-->
	    <div class="page-content">
	        <div class="container-fluid">
					 <div class="row">
			            <div class="col-lg-8 col-xs-8 col-sm-8 col-md-8" style="line-height:36px;">
                            <div class="actions">
                                    <a href="#" class="btn btn-xs btn-info" data-toggle="modal" data-target="#addUser" onclick="addNewUser()">
                                        <i class="fa "></i>&nbsp;新建用户
                                    </a>&nbsp;
                                    <a href="#" class="btn btn-xs btn-info" data-toggle="" data-target="" onclick="updateUser()">
                                        <i class="fa "></i>&nbsp;修改用户
                                    </a>&nbsp;
                                    <a href="#" class="btn btn-xs btn-info" data-toggle="" data-target="" onclick="lockUser()">
                                        <i class="fa "></i>&nbsp;锁定/解锁
                                    </a>&nbsp;
                                    <a href="#" class="btn btn-xs btn-info" data-toggle="modal" data-target="" id="userPrivAdjustUpdate">
                                        <i class="fa "></i>&nbsp;权限调整
                                    </a>&nbsp;
                                    <a href="#" class="btn btn-xs btn-danger" data-toggle="" data-target="" onclick="deleteUser()">
                                        <i class="fa "></i>&nbsp;删除用户
                                    </a>&nbsp;
                                </div>
                        </div>
			            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4" style="margin-bottom: 10px;">
			                <div class="input-group">
			                    <input id="userFullname" type="text" placeholder="用户姓名" class="form-control"/>
			                    <span class="input-group-btn">
			                        <button id="btnQuickSearch" type="button" class="btn btn-primary">
			                        	<i class="fa fa-search"></i>
			                        </button>
				                    <button id="btnAdvSearch" type="button" class="btn btn-default btn-adv-search">
				                    	<i class="fa fa-angle-double-down" style="font-size: 20px; color:white;"></i>
				                    </button>
				                </span>
			                </div>
			            </div>
			        </div>
                    <!-- ////////////////////////////////////// -->
                    <div  class="panel panel-default" id="advSearchPanel" style="position:fixed;Z-index:9999;width:95%;display:none;">
		                <div class="panel-body">
                            <input id="unitIDValue" type="hidden" class="form-control"/>
		                    <form id="frmAdvSearch" role="form" action="" class="form-horizontal advance-query" autocomplete="off">
		                        <div class="row">
		                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
		                                <div class="form-group">
		                                    <label for="prjId" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">组织机构 </label>
		                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
		                                        <div class="input-group">
				                                     <input type="text" id="quickSearch" name="quickSearch"   class="form-control"/>
			                                    <span class="input-group-addon"  id="btnUnitSelect">...</span>
		                            	</div>
		                                    </div>
		                                </div>
		                            </div>
		                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
		                                <div class="form-group">
		                                    <label for="shopType" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">用户账号 </label>
		                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
		                                         <input id="userAccount" name="userAccount" type="text" placeholder="用户账号"
		                                               minlength="4"
		                                               maxlength="50" class="form-control forsubmiteq"
		                                               fieldname="item.user_account"
		                                               fieldtype="string" fieldoperator="and"/>
		                                    </div>
		                                </div>
		                            </div>
		                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
		                                <div class="form-group">
		                                    <label for="shopId" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">是否锁定 </label>
		                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
		                                        <select fieldname="item.user_account_locked" fieldoperator="and" fieldtype="string" class="form-control forsubmiteq" name="userAccountLocked"  id="userAccountLocked">
													<option value=""></option>
													<option value="1">是</option>
													<option value="0">否</option>
												 </select>
		                                    </div>
		                                </div>
		                            </div>
		                        </div>
		                        <div class="row">
		                             <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4">
		                                <div class="form-group">
		                                    <label for="shopType" class="col-sm-4 col-lg-4 col-xs-4 col-md-4 control-label">用户名称 </label>
		                                    <div class="col-sm-8 col-lg-8 col-xs-8 col-md-8">
		                                         <input id="userName" name="userName" type="text" placeholder="用户名称"
		                                               minlength="1"
		                                               maxlength="200" class="form-control forsubmiteq"
		                                               fieldname="item.userName"
		                                               fieldtype="string" fieldoperator="and"/>
		                                    </div>
		                                </div>
		                            </div>
		                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4"></div>
		                            <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4"></div>
		                        </div>
		                        <div class="row">
		                            <div class="col-sm-12 col-lg-12 col-xs-12 col-md-12 text-right">
		                                <button type="reset" id="advSearchReset" name="advSearchReset" class="btn btn-default">
		                                    重置
		                                </button>
		                                <button type="button" id="advSearchSubmit" name="advSearchSubmit"
		                                        class="btn btn-primary">查询
		                                </button>
		                            </div>
		                        </div>
		                    </form>
		                </div>
		            </div>
                    <!-- ////////////////////////////////////// -->
				<div class="row">
                    <div class="col-lg-12">
				        <div class="portlet box portlet-blue" style="margin-bottom: 15px;">
				            <div class="portlet-header">
				                <div class="caption">用户列表</div>
                                <!-- <div class="actions">
                                	<a href="#" class="btn btn-xs btn-warning" data-toggle="modal" data-target="#addUser" onclick="addNewUser()">
                                		<i class="fa fa-plus"></i>&nbsp;新建用户
                                	</a>&nbsp;
                                	<a href="#" class="btn btn-xs btn-warning" data-toggle="" data-target="" onclick="updateUser()">
                                		<i class="fa fa-edit"></i>&nbsp;修改用户
                                	</a>&nbsp;
                                	<a href="#" class="btn btn-xs btn-warning" data-toggle="" data-target="" onclick="lockUser()">
                                		<i class="fa fa-unlock"></i>&nbsp;锁定/解锁
                                	</a>&nbsp;
                                	<a href="#" class="btn btn-xs btn-warning" data-toggle="modal" data-target="" id="userPrivAdjustUpdate">
                                		<i class="fa fa-list"></i>&nbsp;权限调整
                                	</a>&nbsp;
                                	<a href="#" class="btn btn-xs btn-danger" data-toggle="" data-target="" onclick="deleteUser()">
                                		<i class="fa fa-trash-o"></i>&nbsp;删除用户
                                	</a>&nbsp;
                                </div> -->
				            </div>
				            <div class="portlet-body">
                                <table id="userTable" class="table table-hover table-striped table-bordered table-advanced tb-sticky-header" width="100%">
                                    <thead>
                                        <tr>
                                        	<th style="width: 1%; padding: 10px;">
			                                    <input id="chkAll" name="chkAll" type="checkbox" colValue="chk" class="checkall" style="display:none;"/>
			                                    <input id="selectedUserID" name="selectedUserID" type="hidden"/>
			                                    <input id="isLocked" name="isLocked" type="hidden"/>
			                                    <input id="userIds" name="userIds" type="hidden"/>
			                                </th>
                                            <th width="19%" colValue="userFullname">姓名</th>
                                            <th width="20%" colValue="userAccount">账号</th>
                                            <th width="20%" colValue="userDescription">描述</th>
                                            <th width="20%" colValue="userUnits">组织机构</th>
                                            <th width="10%" colValue="userRoles">角色</th>
                                            <th width="10%" colValue="userAccountLocked">锁定</th>
                                        </tr>
                                    </thead>
                                </table>
				            </div>
				        </div>
                    </div>
                </div>
	        </div>
	    </div>
	   <!-- ====================================== 窗口区 组织机构===================================== -->
		<div id="FrameUnitSelect" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header modal-header-primary">
						<button type="button" data-dismiss="modal" aria-hidden="true" class="close">x</button>
						<h4 id="modal-header-primary-label" class="modal-title">请选择组织</h4>
					</div>
					<div class="modal-body">
	   					<iframe id="UnitFrame" src="" frameborder="0" noResize width="100%" scrolling="auto" height="400px"  vspale="0"></iframe>
					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
						<button id="unitSave" type="button" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>
	   <!-- ====================================== 窗口区 新建用户===================================== -->
         <div id="addUser"  tabindex="-1" role="dialog" aria-labelledby="modal-header-primary-label" data-backdrop="static" aria-hidden="true" class="modal fade">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header modal-header-primary">
                        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                        <h4 id="modal-header-primary-label" class="modal-title">新建用户</h4>
                    </div>
                    <div class="modal-body">
						<form id="userDetailForm" role="form" action="" class="form-horizontal" autocomplete="off">
							<div class="form-group">
								<label for="txtUserName" class="col-sm-3 control-label">姓名<span class='require'>*</span>
								</label>
								<div class="col-sm-9">
                                    <input id="txtUserName" name="txtUserName" required type="text" placeholder=""  maxlength="32" class="form-control " autocomplete="off"/>
									<input id="userId" type="hidden"/>
									<i class="alert alert-hide">项目是必选项</i>
								</div>
							</div>
							<div class="form-group">
								<label for="txtUserPassword" class="col-sm-3 control-label">密码 <span id="star" class='require'>*</span>
								</label>
								<div class="col-sm-9">
                                    <input id="txtUserPassword" name="txtUserPassword" type="password" placeholder="" maxlength="20" class="form-control " autocomplete="off"/>
									<i class="alert alert-hide">项目是必选项</i>	
								</div>
							</div>
							<div class="form-group">
								<label for="txtUserAccount" class="col-sm-3 control-label">账号 <span class='require'>*</span>
								</label>
								<div class="col-sm-9">
                                    <input id="txtUserAccount" name="txtUserAccount" type="text" placeholder="" required  maxlength="32" class="form-control " />
									<i class="alert alert-hide">项目是必选项</i>
								</div>
							</div>
                            <div class="form-group">
                                <label for="txtUserMobile" class="col-sm-3 control-label">手机
                                </label>
                                <div class="col-sm-9">
                                   <input id="txtUserMobile" name="txtUserMobile" type="text" placeholder=""  maxlength="25" class="form-control " />
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="txtUserMail" class="col-sm-3 control-label">邮箱
                                </label>
                                <div class="col-sm-9">
                                   <input id="txtUserMail" name="txtUserMail" type="text" placeholder=""  maxlength="300" class="form-control " />
                                </div>
                            </div>
							<div class="form-group">
								<label for="txtUserDesc" class="col-sm-3 control-label">描述
								</label>
								<div class="col-sm-9">
                                   <input id="txtUserDesc" name="txtUserDesc" type="text" placeholder=""  maxlength="255" class="form-control " />
								</div>
							</div>
							<div class="form-group">
								<label for="txtUserUnitsStations" class="col-sm-3 control-label">组织机构</label>
								<div class="col-sm-9">
										<div class="input-group">
		                                     <input type="text" id="txtUserUnitsStations" name="txtUserUnitsStations" data-toggle="tooltip" title=""   class="form-control" required disabled/>
		                                     <input id="txtUserUnitsStationsValue" type="hidden"/>
		                                     <span class="input-group-addon btn btn-primary"  id="unitSelect" style="color: white;">...</span>
		                            	</div>
								</div>
							</div>
							<div class="form-group">
								<label for="txtUserAdminRole" class="col-sm-3 control-label">管理角色</label>
								<div class="col-sm-9">
 										<div class="input-group">
		                                     <input type="text" id="txtUserAdminRole" name="txtUserAdminRole" data-toggle="tooltip" title=""   class="form-control" required disabled/>
		                                     <input id="txtUserAdminRoleValue" type="hidden"/>
		                                     <span class="input-group-addon btn btn-primary"  id="manageRole" style="color: white;">...</span>
		                            	</div>
								</div>
							</div>
							<div class="form-group">
									<label for="txtUserRoles" class="col-sm-3 control-label">业务角色</label>
									<div class="col-sm-9">
		                                 <div class="input-group">
		                                     <input type="text" id="txtUserRoles"  name="txtUserRoles" data-toggle="tooltip" title=""  class="form-control" required disabled/>
		                                     <input id="txtUserRolesValue" type="hidden"/>
		                                     <span class="input-group-addon btn btn-primary"  id="workRole" style="color: white;">...</span>
		                            	</div>
		                            </div>
							</div>
						</form>
					</div>
                    <div class="modal-footer">
                        <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button id="btnSaveUser" type="button" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </div>
        </div>
		
		<!-- ====================================== 窗口区 权限调整===================================== -->
		<div id="userPrivAdjust" tabindex="-1" role="dialog" aria-hidden="true"  data-backdrop="static" class="modal fade">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header modal-header-primary">
						<button type="button" data-dismiss="modal" aria-hidden="true" class="close">x</button>
						<h4 id="modal-header-primary-label" class="modal-title">权限调整</h4>
					</div>
					<div class="modal-body">
					   <iframe id="PrivilegeAdjustment" src="" frameborder="0" noResize width="100%"  height="500px"  vspale="0"></iframe>
					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button  type="button" id="userPrivAdjustSave" class="btn btn-primary">保存</button>
                    </div>
				</div>
			</div>
		</div>
      <!-- /////////////////////////////// 管理角色窗口 ///////////////////////////////////////////////////////-->
      <div id="showItemList" tabindex="-1" role="dialog" aria-labelledby="modal-header-primary-label" data-backdrop="static" aria-hidden="true" class="modal fade">
            <div class="modal-dialog " >
                <div class="modal-content">
                    <div class="modal-header modal-header-primary">
                        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">&times;</button>
                        <h4 id="showItemListTitle"  class="modal-title">管理角色</h4>
                    </div>
						<iframe id="Roleiframe" src="" frameborder="0" noResize width="100%"  height="450px"  vspale="0"></iframe>
		             <div class="modal-footer">
                        <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                        <button id="btnSaveManger" type="button" class="btn btn-primary">保存</button>
                        <button id="btnSaveWork" type="button" class="btn btn-primary">保存</button>
                    </div>
                </div>
            </div>
        </div>
      
		
		<!--END CONTENT -->
	    <!-- 加载 jquery js-->
	    <script src="/Apollo/madmin/js/jquery-1.10.2.min.js"></script>
	    <script src="/Apollo/madmin/js/jquery-migrate-1.2.1.min.js"></script>
	    <script src="/Apollo/madmin/js/jquery-ui.js"></script>
	    
	    <!-- 加载 bootstrap 和三方插件 js -->
	    <script src="/Apollo/madmin/vendors/bootstrap/js/bootstrap.min.js"></script>
	    <script src="/Apollo/madmin/vendors/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js"></script>
	    <script src="/Apollo/madmin/js/html5shiv.js"></script>
	    <script src="/Apollo/madmin/js/respond.min.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-cookie/jquery.cookie.js"></script>
	    <script src="/Apollo/madmin/vendors/iCheck/icheck.min.js"></script>
	    <script src="/Apollo/madmin/vendors/iCheck/custom.min.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-pace/pace.min.js"></script>
	    <script src="/Apollo/madmin/vendors/holder/holder.js"></script>
	    <script src="/Apollo/madmin/vendors/responsive-tabs/responsive-tabs.js"></script>
	    <script src="/Apollo/madmin/vendors/moment/moment.js"></script>
		<script src="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
	    <script src="/Apollo/madmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
	    <script src="/Apollo/madmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
	    <script src="/Apollo/madmin/vendors/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
    	<script src="/Apollo/madmin/vendors/jquery-tablesorter/jquery.tablesorter.js"></script>
    	<script src="/Apollo/madmin/js/table-advanced.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-validate/jquery.validate.min.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-validate/message_zh.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-steps/js/jquery.steps.min.js"></script>
	    <script src="/Apollo/madmin/vendors/jquery-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>

	    <!-- 加载本页面对应的js -->
		<script src="/Apollo/madmin/vendors/dhtmlxtree/Arraylist.js"></script>
		<script src="/Apollo/madmin/vendors/dhtmlxtree/dhtmlxcommon.js"></script>
		<script src="/Apollo/madmin/vendors/dhtmlxtree/dhtmlxmenu.js"></script>
		<script src="/Apollo/madmin/vendors/dhtmlxtree/dhtmlxtree.js"></script>
		<script src="/Apollo/madmin/vendors/dhtmlxtree/dhtmlXTreeExtend.js"></script>
		<script src="/Apollo/madmin/vendors/dhtmlxtree/DivDialogUtil.js"></script>
	    <script src="/views/static/js/export.js"></script>
	    <script src="/views/static/js/form.js"></script>
		<script src="/views/static/js/jquery.checkall.js"></script>
	    <script src="UserList.js"></script> 
    </body>
</html>